// 引入mock 生成数据
import Mock from 'mockjs'
var data = Mock.mock({
    'items|10': [{
        'name': '@cname',
        'id|100+1': 100,
        'account': `JS@string("number", 5, 10)`,
        'password': '@string("lower", 8)',
        'phone': /^1[34578]\d{9}$/,
    }],
})
// 创建接口
Mock.mock('/teacher', 'get', data.items)